// JavaScript Document

$(document).ready(function(){
	$('.rturma').click(function(evt){
		evt.preventDefault();
		
		var rel     = $(this).attr('rel');
		var id_prof = $(this).attr('id');
		var loading = "<img id='loading' alt='Carregando' title='Carregando' src='../img/ajax-loader.gif'>";
		
		$.ajax({
			type: "POST",
			url:  "../Paginas/rresutprofavaliar.php",
			data: "tabela="+rel+"&id_prof="+id_prof, 
			beforeSend: function(){
				$('#article').html(loading);
			},
			success: function(inf){
				
				$('#article').html(inf);
			}
			
		});
	});
	
});
